﻿@{
    Layout = null;
    HttpCookie cookie = Request.Cookies["u000"];
    if (cookie != null){
        cookie.Value = ViewData["code"] as string;
    }
    else{
        cookie = new HttpCookie("u000", ViewData["code"] as string);
    }
    Response.AppendCookie(cookie);
    
    HttpCookie nameIdentityCookie = Request.Cookies["name"];
    if (nameIdentityCookie != null){
        nameIdentityCookie.Value = ViewData["name"] as string;
    }
    else{
        nameIdentityCookie = new HttpCookie("name", ViewData["name"] as string);
    }
    Response.AppendCookie(nameIdentityCookie);

    if((bool)ViewData["IsFirst"]){
		HttpCookie isFirstCookie = Request.Cookies["IsFirst"];
		if (isFirstCookie != null){
			isFirstCookie.Value = "True";
		}
		else{
			isFirstCookie = new HttpCookie("IsFirst", "True");
		}
		Response.AppendCookie(isFirstCookie);
	}
    
}
<html>
<body onload="location.href='/account/myinfo'">
</body>
</html>
